package com.neoharvest.smartagri.service;

import com.neoharvest.smartagri.strategy.PathPlanningStrategy;

public class PathPlanningService {
    private PathPlanningStrategy currentStrategy;
    
    public void setStrategy(PathPlanningStrategy strategy) {
        this.currentStrategy = strategy;
    }
    
    public void calculatePath() {
        if(currentStrategy != null) {
            currentStrategy.planPath();
        } else {
            System.out.println("No path planning strategy set");
        }
    }
    
    public void avoidObstacle() {
        System.out.println("Recalculating path to avoid obstacle...");
    }
    
    public void optimizeForMultipleMachines() {
        System.out.println("Optimizing path for multiple machines...");
    }
}